import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/fukaact',
  component: Layout,
  redirect: '/fukaact/index',
  name: 'fukaact',
  meta: {
    title: '福卡活动',
    icon: 'material-symbols:cards-star-outline',
  },
  children: [
    {
      path: 'index',
      name: 'fukaactIndex',
      component: () => import('@/views/fukaact/index.vue'),
      meta: {
        title: '活动列表',
      },
    },
    {
      path: 'detail',
      name: 'fukaactDetail',
      component: () => import('@/views/fukaact/detail.vue'),
      meta: {
        title: '福卡活动配置',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactProductList',
      name: 'fukaactProductList',
      component: () => import('@/views/fukaact/productList.vue'),
      meta: {
        title: '关联商品',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactProductDetail',
      name: 'fukaactProductDetail',
      component: () => import('@/views/fukaact/productDetail.vue'),
      meta: {
        title: '关联商品配置',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactPrizeList',
      name: 'fukaactPrizeList',
      component: () => import('@/views/fukaact/prizeList.vue'),
      meta: {
        title: '奖品池',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactPrizeDetail',
      name: 'fukaactPrizeDetail',
      component: () => import('@/views/fukaact/prizeDetail.vue'),
      meta: {
        title: '奖品池配置',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactZhuliCouponList',
      name: 'fukaactZhuliCouponList',
      component: () => import('@/views/fukaact/ZhuliCouponList.vue'),
      meta: {
        title: '助力券列表',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaactZhuliCouponDetail',
      name: 'fukaactZhuliCouponDetail',
      component: () => import('@/views/fukaact/ZhuliCouponDetail.vue'),
      meta: {
        title: '助力券配置',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaTaskList',
      name: 'fukaTaskList',
      component: () => import('@/views/fukaact/fukaTaskList.vue'),
      meta: {
        title: '福卡任务',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'fukaTaskDetail',
      name: 'fukaTaskDetail',
      component: () => import('@/views/fukaact/fukaTaskDetail.vue'),
      meta: {
        title: '福卡任务配置',
        menu: false,
        activeMenu: '/fukaact/index',
      },
    },
    {
      path: 'userIndex',
      name: 'fukaactUserIndex',
      component: () => import('@/views/fukaactUser/index.vue'),
      meta: {
        title: '活动用户列表',
      },
    },
    {
      path: 'fukaUserDetail',
      name: 'fukaUserDetail',
      component: () => import('@/views/fukaactUser/detail.vue'),
      meta: {
        title: '用户福卡明细',
      },
    },
    {
      path: 'fukaUserPrize',
      name: 'fukaUserPrize',
      component: () => import('@/views/fukaactUser/prize.vue'),
      meta: {
        title: '用户奖品列表',
      },
    },
    {
      path: 'fukaUserZhuli',
      name: 'fukaUserZhuli',
      component: () => import('@/views/fukaactUser/zhuli.vue'),
      meta: {
        title: '集福助力记录',
      },
    },
    {
      path: 'fukaUserZhuliTicket',
      name: 'fukaUserZhuliTicket',
      component: () => import('@/views/fukaactUser/zhuliTicket.vue'),
      meta: {
        title: '助力发券记录',
      },
    },
    {
      path: 'fukaUserSummary',
      name: 'fukaUserSummary',
      component: () => import('@/views/fukaactUser/summary.vue'),
      meta: {
        title: '活动数据汇总',
      },
    },
  ],
}

export default routes
